package chapter67;

public class Person1 {
	public String name;
	public int age;
	
	public Person1(){
		
	}
	
	public Person1(String name,int age){
		this.name = name;
		this.age = age;
	}
	
	/*public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}*/
	
	public void sayHello(){
		System.out.print("你好，我的名字叫"+this.name+"，我的年龄是"+this.age);
	}
}
